package com.itstudio.myforumsystem.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itstudio.myforumsystem.entity.Files;
import com.itstudio.myforumsystem.mapper.FilesMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FileService extends ServiceImpl<FilesMapper, Files> implements IService<Files> {


    public List<Files> selectList(QueryWrapper<Files> queryWrapper) {

return baseMapper.selectList(queryWrapper);
    }

    public void insert(Files saveFile) {
        baseMapper.insert(saveFile);
    }
}
